import request from "@/utils/request";
export interface Access {
    _id: string;
    title: string;
    description: string;
    status: number;
}
export const getAccessApi = () => request.get("/admin/access");
export const createAccessApi = (accessInfo: Partial<Access>) => request.post("/admin/access", accessInfo);
export const updateAccessApi = (accessInfo: Partial<Access>) => request.patch("/admin/access", accessInfo);
export const deleteAccessApi = (accessInfo: Partial<Access>) => request.delete("/admin/access", { data: accessInfo });
export const getMenuApi = (accessInfo?: Partial<Access>) => request.get("/admin/access/menu", { params: accessInfo });
